<script type="text/javascript" src="../../../../build/seed.js"></script>
<script type="text/javascript" src="../../base.js"></script>
<script type="text/javascript" src="../../xhrobject.js"></script>
<script type="text/javascript" src="../../iframe-upload.js"></script>
<script type="text/javascript" src="../../form-serializer.js"></script>
<script type="text/javascript" src="../../form.js"></script>
<script type="text/javascript" src="../../jsonp.js"></script>
<script type="text/javascript" src="../../script.js"></script>
<script type="text/javascript" src="../../xhr.js"></script>
<script type="text/javascript" src="../../xdr.js"></script>
<script type="text/javascript" src="../../../ajax.js"></script>


<script type="text/javascript">
    KISSY.__combines = {};
    KISSY.ready(function(S) {
        S.use("ajax,node", function(S, io, Node) {
            var $ = Node.all;
            var f = $('<form id="f2">' +
                    '<input name="test4[]" value="t6"/>' +
                    '<input name="test4[]" value="t7"/>' +
                    '<select name="test[]" multiple>' +
                    '<option value="t1" selected>v</option>' +
                    '<option value="t2" selected>v2</option>' +
                    '</select>' +
                    '</form>').appendTo("body");

            var re = [],ok,d;
            var xhr = io({
                url:'upload.php',
                form:"#" + f.prop("id"),
                type:'post',
                dataType:'json',
                data:{
                    "test2":["t2","t3"],
                    "test3":"t4"
                },
                success:function(data) {
                    ok = true;
                    d = data;
                    console.log(d);
                },
                complete:function() {
                    ok = true
                }
            });
        });
    });
</script>